Declare @temp Table (Cmdoutput varchar(max))
Insert into @temp
Exec xp_cmdshell 'reg query HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation /v StandardName'
select Ltrim(REPLACE(CmdOutput, 'StandardName' + CHAR(9) + 'REG_SZ', '')) from @temp where Cmdoutput like '%standardName%'
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment