Help wanted by app-v powershell
Hello, i want that app-v 5 packages that are not used anymore being cleaned up from my cache without clearing the whole cache.i know this must be possible with powershell, im am just a newbie with...
View ArticlePowerShell script not executing correctly when used as a shutdown script
I have a script to unzip files that I'm testing as a shutdown script. I have the property to visibly display script output set to true as well so I can see if it's being run. The script doesn't execute...
View ArticleRemoting from a PS 3.0 server to a PS 2.0 client using CIM cmdlets.
I'm brand new to powershell and my first use is to retrieve information from client machines about printers. When working with a client machine that has PS 3.0 already installed it's pretty straight...
View Article(WMI) Need a cluster resource information - resource owned by cluster group
Hello guys, I need to get some information regarding the drives that a cluster group owns. Here is the Code i m using to get the cluster network names:- strWMIQuery = "SELECT * FROM...
View ArticleCustom tables and PSobject
Hi, so im messing with ps hash tables and custom tables i am looking for an alternative way of outputting them in the right format below, maybe someone could show me an easier way so this is what i...
View ArticlePOWERSHELL - MAKE MOUSE CURSOR GO TO THE CENTER OF THE SCREEN NUMBER 3
Hello everybody,I have a multimonitor setup with 4 monitors (2 columns with 2 monitors). Monitor number 1 is on the left upper corner, monitor number 2 is on the left bottom corner, monitor number 3 is...
View ArticleCannot uninstall Powershell V1 From Server 2003 R2 Standard x86
I am posting this question in this forum at the recommendation of a moderator who feels this is a Powershell forum inquiry. Any help would be appreciated! I have been reading through many articles...
View ArticleHow to link the output from win32_diskdrive and win32_volume
Hi,I am doing some analysis on multiple servers and am looking at ways to link the output from the following 2 lines:Get-WmiObject win32_volume | Select SystemName, name, Label, DriveLetter,...
View ArticleList print queues on workstations
Hello,I am trying to write a script to list all the printers defined on a workstation (local and network). I was successful listing the local printers but I can't find a way to list the network...
View ArticleChange SQL Agent Job notification operator
Need help with this powershell script that will assign operator email for failure. Here is what I have:$server = "SQLSERVER\NAMED_INSTANCE"...
View ArticleMove-ADObjects cmdlet: how do I log output?
Hello all,I cannot get this cmdlet to log any output. In the help file it does say the following: PassThruReturns the new or modified object. By default (i.e. if -PassThru is not specified), this...
View ArticleHow to pass the value out of the script, I am not sure how to use global or...
New-Variable -Name GlobalVar -Value "Initial" -Scope "Global" write "GlobalVar is $GlobalVar" $script = { param( $server, $mycred ) $GlobalVar="Different" } # Passing of the parameters to the block...
View ArticlePowershell Script Help
add-pssnapin quest.activeroles.admanagement $date = (get-date).ToString() $DistinguishedName = get-content C:\TEMP\90InactiveMoves\SSCtest.txt | foreach-object {get-qaduser $_ -Service 'My server.com'...
View ArticleChange remote configuration using powershelll for multiple servers
Hi,Can anyone help me with changing the "Disconnected session from 10mins to 6hours" in remote session host configuration under Remote Desktop Services using powerhsell.I used this command to install...
View Articlehow to -expand a property but include the label
Hi, i am looking for an easier way to -expand a property but to keep the label.. I know you can do the fl and different ft to sort of expand multiple results but that still can be cut off depending on...
View ArticleLooking for good books on the Virtual Machine Manager Powershell Module
Hi, I am looking for a good book, or books that teach you about the Virtual Machine Manager Powershell Module for Windows Server 2012. I am looking for examples of the cmdlets, in addition to a...
View ArticleUsing AsJob To Improve Performance
Hi All,I am working on a script which checks a server for ping and then check all SQL Server Services status and sotre this in a table. However I have to check across 70 servers and it takes over a...
View ArticlePower shell archive script
Apologies if thisis abad post, if it is please redirect me...I'm new to power shell and have a question regarding scripting an archive solution.The solution has to do the followingMove files older than...
View Articlelisting AD accounts that been inactive for more than 90 days, or that shows...
Hi, I am trying to get information about more than 90 days, could someone verify script below, is it fine or I should add anything else$90Days = (get-date).adddays(-90)Get-ADUser -properties * -filter...
View ArticleRemote command works on one client but not another
My previous question turns out to be erroneous -http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/52e5861f-3cde-42c4-9a52-64bbda0c16daIt turns out that the fact that one of...
View Article