List all variables in a script
Hi All,Do we have a command or script which lists/displays variables used in a script? Ex, i have a posh script, which has 10 variables . I need list of only those 10 variables. I dont need default...
View ArticleOutput to 2 files with 1 command?
I have this code that works: gc C:\Tools\PingComputers\Input.txt |?{ (gwmi Win32_PingStatus -Filter "Address='$_'").StatusCode -eq 0 } | out-file C:\Tools\PingComputers\Pingable.txt How would I also...
View ArticlePowerShell and Filter Beans
Greetings;I'm working with this WSDL API and so far I've managed to get most of the API methods wrapped with a PowerShell function. It's (sort of) a ticketing system and one important ability would be...
View ArticleScan IP range and resolve DNS addresses
Here is what I have so far;1..255 | foreach-object { (new-object System.Net.Networkinformation.Ping).Send("10.0.0.$_") } | where-object {$_.Status -eq "success"} | select addressThis returnes a list of...
View Articleweb-scraping
Hi. I'm brand new to this site and also new to PowerShell. I am trying to do something which should be simple, but doesn't work for me. I am trying to log on to a website with IE10, and create a...
View ArticleResolveName with match
Hello thereI am a beginner with this so bare with me:)I have a script that goes like this:# Environment Setup$InputFile = "servers.csv"# Read the input file which is formatted as name,type,address with...
View ArticleUsing PowerShell to apply ODBC settings to a computer?
As I have learned so much from reading and asking questions, thanks so much for everyones help. I have another problem to solve. One of the lines in one of the textbooks, I think it was Mr. Jones (Not...
View ArticleEdit shotcut target
A little background about what I'm trying to do and why. We are slowly migrating from using a local copy of office on our end users Win7 machines to publishing office through RDS 2012. With 2012 you...
View ArticleHelp exporting script results to csv
I'm trying to find McAfee versions from a list of servers and found this script. How can i export the result to .CSV? ThanksForeach ($c in Get-Content D:\servers.txt ) {trap { continue; } write-Host...
View Articleexport the result of the script.
How can i export the result to .CSV or HTML.thanks in advance $comps = Get-content C:\Serverlist.txt foreach ($comp in $comps) { invoke-command -computer $comp { get-process BServer | stop-process...
View ArticleQAD tools vs default PS cmdlets
Hi,What are the major differences between the two and which technology would should I use? Thanks!
View ArticleView installed updates.
Hi,In powershell is there any cmdlet or any other way to list all the installed updates on a windows 7 PC. I have tried Get-Hotfix but it not giving the total list of updates installed on a PC.
View ArticleCannot export certain attributes that ARE populated
Hi,Can anyone explain why when using QAD cmdlets I cannot eport certain attributes? eg, if I run the following Get-QADUser * -searchroot 'ou=users,dc=domain,dc=com' | select -property name,...
View ArticleManagement OData IIS Extension
Does anyone know of any documentation aside from the broken links on MSDN that link to dead VS projects? I've spent too many hours looking for any documentation on exposing some custom modules via...
View ArticleRemove-Item does not work (Permissions) but "cmd /c 'rd /s /q directory' "...
Hallo,I would like to delete a directory of a user with the powershell (I 've run it as administrator):PS C:\Users> Remove-Item DIRECTORY -Force -Recurse + CategoryInfo :...
View ArticleReinstall News app with powershell
The Metro or Modern apps in my Windows 8 stopped working when I upgraded to 8.1 Researching the problem I uninstalled the News app that comes with Widows. Then I tried to add it back. I only have a...
View ArticleQuery 2 registry entries for a workstations by OU and output to an excel file
I am just learning powershell of course, but I need to find a way to query 2 registry entries in the same key "HKLM\SYSTEM\CurrentcontrolSet\control\Session Manager\Environment" and then output that to...
View ArticlePing & RDP status
Hi, I have a little script that indentify the ping status of servers:get-content c:\servers.txt | foreach { if (test-connection $_ -quiet) { write-output "$_ is Pingable" | out-file c:\results.txt...
View ArticleHelp Creating Backup script
Hi. I'm very new to powershell scripting but for a project I'm working on i think powershell would be the best solution to automate our backups. I'm trying to create a script that will back up folders...
View ArticleHTML Output with Color Text
Hello, I am just beginning my powershell adventures and I am having a few issues. I have written the below script to go out to a List of Servers and check the status for only these specific windows...
View Article