Error: Set-FsrmQuotaTemplate : 0x80070057, The parameter is incorrect.
When I try to create new or modify settings for FSRM Quota Template, for example:-------------------------------#Create action $Action= New-FsrmAction -Type Command -Command...
View Articleinstall downlevel "FailoverClusters" module on Server 2016
quick version - I wrote a bunch of monitoring scripts that run on our VMM server, all start with "Import-Module FailoverClusters" on the first line.The server was in-place upgraded to Server 2016, and...
View ArticleContent library deployment tool vCenter
Afternoon allI'm building a Powershell script that will enable me to deploy VM's from my vCenter content library after filling in a brief form. This form pulls through some information from the vCenter...
View ArticlePSRemote over One Way External Trust not working
Hi,The infrastructure I have is two forests, one with a root and child domain and the other only has one domain so the names could be DomainA, SubDomainA and DomainBI created an external trust from...
View ArticleHow to pass parameters to a PowerShell ISE script?
Hello, I am trying to figure out on how to pass parameters to a PowerShell ISE script.I took a snap shot of my simple script and tried to find out how to pass parameter to it. I could not do it from...
View ArticleGet a copy of a value from a file
Hi All , I'm trying to use select string to get a copy of a line from ini file.....my problem is every time i get an output it start with the word "Line" and then it list the value i needI need to only...
View ArticleScript works with static values, but misbehaves when parameterized.
In a previous question, I sought help with a cleanup script. I want to match a filename, keep the 5 newest of that filename, and delete the rest. The solution provided by BOfH-666 was:$Zpath =...
View ArticleRemove rows from a csv file based on the values from the text file
Hi All,I have a .csv file called input.csv with the following columns.Columns:#TYPE...
View Articleexport text file to html format using powershell for the services running and...
Hi Team,Need script to fulfil requirement as mentioned in title.Thanks,Pranav (aaru0504)
View ArticlePowershell function-get multple values - SOLVED
I have file 1.csvnumber, name # column name 1,john 2,mike 3,test 4,test2 ...I created function for returning all values from this csv (number,name)Function Get-CSV { [CmdletBinding()] param ( # CSV...
View ArticleHow to get EACH EVENT(Get-EventLog -LogName Application) latest triggering...
Hello Team,How to get EACH EVENT(Get-EventLog -LogName Application)latest triggering time along with message in powershell.ThanksM. RameshRamesh. M
View ArticleGet MAC address of VM running in cluster
Hi,I have FOC and which have several Hyperv hosts. I want to get the MAC address of a VM located in the FOC.Now to do that i run the following command from the Management Server (which is of course not...
View ArticleHow run Stop-VM without confirmation and without -Force
When I runStop-VM -Name "VMNAME" -confirm:$false I receive prompt for confirmation: Confirm Hyper-V cannot shut down virtual machine VMNAME because the Shutdown integration service is unavailable. To...
View ArticleInvalid Grant Type Powershell Invoke-WebRequest
I am writing a powershell script to request a access token. When I run it I am getting the error below for Invalid Grant type. I am not sure why (I am fairly new to powershell...
View ArticleAD Powershell command for deleted users
Hi, can anyone please help with an AD Powershell command to extract deleted AD user accounts showing their start date and end date.
View ArticleOutput from powershell not ordered as expected
Hi there,I have a powershell which will list all the SQL clusters in a domain with their corresponding nodes etc but it doesn’t output that info in the structured way I was expecting of cluster name...
View ArticleUnable to find and delete registry keys using powershell -Error - Remove-Item...
Hi,I am not able to make this script run. Please help me.$systems = get-content "C:\cb\systems.txt" Write-Host $systems foreach ($system in $systems) {Invoke-Command -ComputerName $system{ Pushd sl...
View ArticlePowershell "-match" Bug or Feature? O_o
"h\abc" -match "h\a"False"h\abc" -match "h\b"True"h\abc" -match "h\c"parsing "h\c" - Missing control character.At C:\Work\Scripts\App03.ps1:14 char:1+ "h\abc" -match "h\c"+ ~~~~~~~~~~~~~~~~~~~~ +...
View ArticleHow to stop getting prompted to "Confirm"
Hello,I have some Windows Server 2008 systems that I'm trying to run a powershell script on to delete some temp files, but I keep getting prompted with "Confirm... Y [Yes] [A] Yes to All...... ect" Is...
View ArticleSharePoint PowerShell - need to adapt a script so that it runs on every web...
Please help - this script runs on a single site collection and checks that the default groups are present and creates them if not - but we have hundreds in sites in our extranet web app - How can I...
View Article