I have two different Excel files.I am trying to create powershell script to...
function excel_search_replace ( $worksheet, $column_name, $search_str, $replace_str ){ echo "Replacing all '$search_str' with '$replace_str' in column '$Name'" $range = $worksheet.Range(...
View ArticleIssue: Unable to grant certificate private key access to NETWORK SERVICE....
Hi,How do I solve this problem? I've followed those instructions:https://docs.microsoft.com/en-us/azure/active-directory/authentication/howto-mfa-nps-extension-rdg
View ArticleGet-WindowsUpdateLog Not Worked
Ise As administratorPS C:\Windows\system32> Get-WindowsUpdateLog Cannot invoke method. Method invocation is supported only on core types in this language mode. At...
View ArticlePowershell how to use if sats to check say if users are enabled do so....
Hi powershell expert,I have a PowerShell script on the server at work that works good but I need to add an if sast into it.This script checks all those users that are in "Direct reports" if they are...
View ArticleUse PS to export/import FSRM file group
Hello I am regularly updating a File Server Resource Manager file group. I need to copy this group to other servers. At present, I manually input file masks then use the filescrn command from the...
View ArticleManaging clipboard between sessions
I have the current situation: user Alice logged on a Win10. From a PS I can use the get-clipboard and set-clipboard commands to get and set the clipboard. It works as expected.While Alice is logged in...
View ArticleUse powershell to compare columns in excel
I have an excel workbook with two sheets. I want to compare two columns in different sheets using powershell.Say column C in Sheet 1 needs to be compared to column D in Sheet2. Column C has say 100...
View Articleget-adprincipalgroupmembership
When i run this script i want to see GroupName 1st column, second column i would like to see username (entry ok in firstline) all others read...
View ArticleRemote administration is failing
I'm adding clients to a new domain using Powershell. Here are the particulars:Windows 2019 with 2016 Domain levelRemote Management is enabledFirewall is disabledLogged in on domain controller as as...
View ArticleCredential on the background
I'm trying to push file to multiple servers. I was able to collect information from internet.[code]Read-Host "Er Password" -AsSecureString | ConvertFrom-SecureString | Out-File PSCred.txt $Pass = cat...
View ArticleUsing Windows Task Scheduler to run PS1 Script - Getting Error
Hello Team, I am new to Powershell and hopefully this is a simple enough problem on my end that you can help me solve. I have the PowerShell script build and its running fine when I run it via the Task...
View Articlepowershell find specific word document in sharepoint libary
Hi all I am trying to find a word document which has some keywords in it.But I can't get it right.can someone please tell me what I am doing wrong? I am a novice at this.Thanks#Client modules laden...
View ArticleStart-Job hangs Powershell on Windows Server 2016
I'm not sure where one reports bugs and a phone call to support the folks on the other end suggested I send a letter. I figured this was better.Occasionally when running Start-Job the operation hangs....
View ArticleForeach Loop can't break when variable is Yes
Hi All , I created a function to look for a userID in two sets of AD groups , Group A consist of 5 security groups , Group B consists also of another different 5 security groupsIf a user is found at...
View ArticleIs Out-File Thread Safe?
Hi,Is Out-File Thread Safe?If it's not, do we have a cmdlt that is or do I need to use a mutex?Thanks,JD
View ArticleDynamic AD Security Groups
I have done some reading and it looks like Active Directory now supports "Dynamic" Security Groups, but there is no GUI interface to actually create them. I have found severaldemonstrations on creating...
View ArticleIs there any powershell command to get the port IP address for a printer
Is there any powershell command to get the port IP address for a printer. Get-printer will give me the port name but not the IUP address which over time has become different on many of ours.Jason
View ArticleWindows Server 2008: PowerShell (Get all list of OU, Users, Computers, GPO in...
Hi,any documentations, ideas, links, videos that can help me the scripts for what i need to do? Apparently, the script Get-ADOrganizationalUnit doesn't read by Windows Server 2008.Thanks
View ArticleIs it possible with select-xml to....
select a xml tag AND its contents inclusing the Tag start and end itself<Start>Random Text here</Start>im tryingselect-xml -path $my path -xpath //Start | select-object -expandproperty...
View ArticleAudit Success Logon Log
Hi everyone,I hope I explain myself clearly.I have server(remote server) 100+ users connect to it. We have move over to a web app so no need for RDP connections.I want to run a powershell script to see...
View Article