The following script checks the operating system version and decides which method must be used.
If you are using windows xp, you will need to change highlighted variables depends on your os-language.
At the end of this post I've put few lines of code that will help you determine the values for variables.
Check values for your operating system (these depends on the system language):$shell = New-object -com Shell.Application
(($shell.NameSpace(3).Items() | ? { $_.Path -like '*7007ACC7-3202-11D1-AAD2-00805FC1270E*'}).GetFolder.Items() | ? { $_.Name -eq 'change to your interface Name' }).Verbs() | Select Name
0 comments:
Post a Comment