Need a Script to Automate DB Restore
Apologies, if I am not posting the question in the correct thread! Hi all, Good day! Let me take a moment to explain what I am looking for. I am purely into DBA management activities and never...
View Articleinheritedgpolinks property is empty
When I open gpmc, I see the group policy inheritance tab listing the group policies. However when I run Get-Inheritance the inheritedgpolinks property is empty. Any reason why this is empty even when I...
View Articlefiltering event logs with specific date range
Hi All,I'm new to powershell and i need help with retrieving event id 560 with specific date range provided as input. currently im using the following command. but i want it to be able to specify a...
View ArticlePowerhsell 5 versions and builds
Hi Team,I know this is simple, but i was unable to find, the powershell release versions build numbers documents. Could anyone help with url linkNaveen Kumar
View ArticleAdding type A DNS records using a powershell script
Adding type A DNS records using the Add-DnsServerResourceRecordA cmdlet works but it cannot be used in an auto-running powershell script due to the lack of the -Force option. I've noticed that the...
View ArticlePowershell script modify
I am modifying an exiting powershell script other person wrote.at the top of the powershell, it looks like this: [CmdletBinding()] param ( [switch]$isTest ) $locMod = "" if ($isTest) { $locMod =...
View ArticleGet a return value from invoke-command
HiI'm calling invoke-command and need to get the "return value". I've tried to simplify it below but basically the invoke-command will return the status of a database. This piece of the script works....
View ArticlePreserving Folder Structure When Copying Files Monitored with...
Hey Guys - I'm writing a script which among other things monitors a specific share (including sub-folders) and when a change of any file is detected, it should copy the change to a 2nd share. The...
View ArticleRichtextbox problem
Hi,why if I add this code to richtextbox , won't see it , when I run it only in powershell console it is ok."$user = Get-ChildItem $Path | Get-FolderSize | Sort-Object -Property Length -Descending |...
View ArticleHow does Powershell Get multiple specified user properties using the...
How does Powershell Get multiple specified user properties using the get-aduser filterI need to get the email addresses of users a, b, c ,It needs to be obtained once in -fiter。Get-ADUser -Filter...
View Articlecut -d ' ' -f7 test.tx
Hi all,can anyone please help the below linux command can be implement in powershell scriptcut -d ' ' -f7 test.txt | cut -c 1-6 Please help asap
View ArticleAD Users Change Company Name
Hi Guys, how can I change a company name attribute for all users from selected OUs? I tried: $Users = Get-ADUser -SearchBase $OU -Filter * Set-ADUser -Identity $Users -Company $NewCompanyName But Then...
View ArticleNot able to Execute Remote PowerShell from Java through Linux server
I have a simple PowerShell script present under remote Window Server at location C:\IAM\Skype\checkPowerShell.ps1Under the checkPowerShell.ps1, I have written below command:New-item...
View ArticleError while removing access
I am trying to remove access for a group from an OU, however I am getting error: Cannot convert argument "rule" with value:"System.Object[]", for RemoveAccessRule to type...
View ArticleAppend Row Error
I have 2 PSO as below, when appending it, I got error. Any other way to do that? Thanks[DBG]: PS C:\Windows\system32>> $a Time : 10:56:01 Symbol : HEXO Price : 2.30 Up% : 9 Volume : 2042998...
View ArticleGet-Credential popupbox still saves credentials even when fields are empty or...
Dear Experts,Get-Credential popupbox still saves credentials even when fields are empty or when your press the Cancel-button. How can i solve this in PowerShell? I have wrote that de credentials will...
View Articleupdate company field of group members
this should be simple...but i'm having problems getting it done. I could do this if i exported to a csv and then imported that but i'd like to do this on the "fly" ...plus i'd learn something...
View ArticleConverting object members before adding to array.
I'll probably butcher the question but here goes. I'll try keep it simple. Take the following query run against MS Exchange Online. $Mailboxes= Get-mailbox $Mailbox contains 1000's of mailbox objects....
View ArticleScript to rename Windows
Hi,Is it possible to rename Windows 8.1 computer without unjoin domain with a powershell script?Thanks,
View ArticleA parameter cannot be found that matches parameter name 'InformationAction'
I'm trying to remotely rename a list of PCs in parallel but I keep getting the error "Microsoft.PowerShell.Utility\Write-Error : A parameter cannot be found that matches parameter name...
View Article