PS D:\> (Get-WmiObject win32_desktop -Filter "Name Like '%$([Environment]::Username)'").ScreenSaverActive
Or:
PS D:\> (Get-ItemProperty -Path 'HKCU:\Control Panel\Desktop').ScreenSaveActive
Basics Hello world User input While loop If statement For loop Switch statement Read file using ifstream Write to a file using ofstr...
No comments:
Post a Comment