-
The question is one I have heard a lot. And it's one I've spent a lot of time trying to satisfy! As I see it, there are several levels of using PowerShell, and therefore several levels of learning to be done. First, using PowerShell from the command line, e.g. to set a permission in Exchange...
-
[quote user="Tobias"] You may also want to try this: Get-WmiObject Win32_NetworkAdapterConfiguration | Where-Object { $_.IPAddress } | Select-Object Caption, IPAddress Or this: Get-WmiObject Win32_NetworkAdapterConfiguration | Where-Object { $_.IPAddress } | Select-Object -expand IPAddress...
-
One tip for those of you new to PowerShell: Stop using CMD. Get rid of the icon from anywhere it exists, and use PowerShell for all you command line needs. Now for many of you, the first few days you try this may be painful - you may think me a flaming idiot for making you go through the learning curve...
-
I want to create a SharePoint webtest with PowerShell. Right now I had a problem with a SharePoint textbox when I create a new calender entry. The textbox had no fixed id. It is possible to search the Fieldname "Title" and then get the id from the textbox? The following code is not working...
-
Hello, is there a way to return the result or varibel value from a script block? i trying to get return value in $QuotaRConfiguration Here is the code. Function Global:Folder\Get-ReplicationPartnerQuotaFoldersConfiguration($Configuration) { $QuotaRConfiguration = @{"users" = @{"office"...
-
I'm learning PS and believe to have progressed to an 'intermediate level' but am encountering a stumbling block now regarding debugging a PS script that requires $env variables to be set via .bat file. In order to detach a PS script from the real run-time environment (i.e directory names...
-
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 Q: is there a way of making a variable contain a real time content, eg in the timestamp example, each time you type $timestamp you get the exact current time No. Once you assign a value to a variable, it stays the same. You can...
-
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 Q: how can a poll each pc to get the version of office on each? There are actually different paths. If PowerShell remoting is enabled on the target machines, then you can use Invoke-Command to remotely execute any PS code you want...
-
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 Q: How can I check the free disk space of multiple computers? can I use a list (file)? Use this: Get-WmiObject Win32_LogicalDisk | Select-Object DeviceID, FreeSpace, Size Get-WMIObject supports a parameter called –Computername...
-
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 Q: How would you determine when a machine was last rebooted? WMI can provide that information: get-wmiobject win32_Operatingsystem | Select-Object LastBoot* To convert the date to a real date, use this approach: $result = get-wmiobject...