Formatting Jumbled / Output with HTML guids
So I am trying to make reports for our servers and one thing is bizarre to me and I do not understand it.Commands:#List all Patches within the last 7 days and stores the results in an array...
View ArticlePositionalParameterNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
Hi all, I have new to PS and trying to run a powershell command, which is giving me error. Please let me know what I am missing here. I am having trouble to run the script to create folders and...
View ArticleUnable to call WCF method in powershell
Hi Experts,I am unable to call the method in Powershell. I am using the below powershell script to call WCF service method...$AurionWebSvcURL =...
View ArticlePowershell re-prompt for entry
Hello. I'm user a powershell script that prompts for multiple entries and certain entries require a user to input a particular value. What I would like to do is if the user's input is not equal to...
View Articlelogin to a list of computers simultaneously?
I do not know where to start on this but i need to know how to script logging into many computers simultaneously so as a logon script will kick off.It would be better if we had a time out/logoff...
View ArticleFormatting repadmin output
Hi all,I'm trying to format output of repadmin /replsummary command within powershell.In my script, very first thing, i execute repadmin /replsummary within powershell and format output a little bit as...
View ArticleHow can I get the hardware information with Powershell
Hi All,I want to use powershell to check whether a PC contains some hardware, such as USB port, Or IEEE1394 port. Or I need to control the hardware on and off.How can I cover this.No code, No fact.
View ArticleUse information from WMI to write values to the registry
Hi,I've been using some of the code found on this page http://technet.microsoft.com/en-us/magazine/dd535685.aspx to gather Reliability Index Scores.I'd like to know if/how to write the values this part...
View ArticleCreating module, Read-Host with color (Read-Host parameters problem)
Well my problem isn't making the color, I already did that and it works fine. I have the problem with the old parameters of the Read-Host cmdlet like -AsSecureString. Is there any way, I can say that...
View Articlequota management
Hi all, I'm trying to script storage quotas on a windows 2012 server. I am running the console as admin but I get the following error though;PS C:\Windows\system32> New-FsrmQuota -CimSession...
View ArticleUnable to read XML file in Powershell
Hi Experts,My xml file format as below.<DocumentRoot> -<AQT_Output> <Surname>LOVE</Surname> <Given_Names>Richard James</Given_Names>...
View Articleset default Computer to member of a group
Hi All,I want to all client computer after join domain will automatically add to member of group, is there any way implement it by using script/PS maybe ?I've already post in the Directory Services...
View ArticleTrying to use Conditional Formatting with a value taken from WMI Insertion...
All I want to do it create an email alert when Exchange whitespace drops below a certain level.I have this script below working and able to output to csv/screen for checking manually, but when the if...
View ArticlePowershell cmdlet not recognized
when i run the Get-VM cmdlet on my R2 - SP1 host - I get the error "The term Get-VM is not recognized as the name of a cmdlet, function etc. etc. What am I missing here??
View ArticlePSCmdlet.ParameterSetName
I'm trying to implement [CmdletBinding(DefaultParameterSetName="something")] when I'm at ProcessRecord function, I copy a switch structure as switch (PSCmdlet.ParameterSetName){}I do have a parameter...
View ArticleWMF 3.0 installation fails with error 0x80070003
Hi Guys,I'm trying to install WMF 3.0 (KB2506143) my Windows 7 x86 workstation and on some Server 2008 R2 x64 servers so I can use Powershell 3.0. On my workstation and on one server, installation...
View ArticlePowershell invoke-command
Hi,I would like to launch a script ps1 on a remote server.Invoke-Command -ComputerName myserver -ScriptBlock{C:\Scripts\Script1.ps1}The script.ps1 :Start-Process Powershell -argumentlist...
View ArticleInvoke-SqlCmd try and catch
There is conversion error returned by following query in SQL server.select * from sys.databases where database_id = 'W'Msg 245, Level 16, State 1, Line 1Conversion failed when converting the varchar...
View ArticleTrying to copy a folder from a server share to many workstations...
I have a folder that a vendor frequently updates and I am trying to set a powershell script to copy the updated folder to the current workstations in my environment. I want the updated folder to...
View Article