Error when batch tries to run program on network drive
My company needs to automate WSUS Offline Updates installation (since reboot and recall doesn't work anymore).I wrote a PowerShell script that asks for credentials and maps network drive where WSUS...
View ArticleScript Export To CSV
Hello Guys I am Executing the Script below, to get Logon History, but i dont know how to export into CSV the Results, guys help with the correct parameter to do that, another question is, how can add...
View ArticleError When Executing Convert-WindowsImage in PowerShell 7.0 in Windows 10 v.1909
Hello:I am attempting to create a VHDX drive in which I can execute Windows 8.1. I am using version "10.0.14278.1000.amd64fre.rs1_es_media.160201-1707" of Convert-WindowsImage. The calling sequence I...
View ArticleUse PowerShell script to run 2 cmd commands with switches sequentially
HelloCurrently I have PowerShell that1. Maps network drive2. Runs batch 1Batch 1 runs batch 2 with switches and then reboots computer.I'm sure it is possible to run these two commands from withing...
View ArticlePowershell - force firewall profile to domain authenticated.
HiThe windows firewall is not realizing its on a domain network and it sets the profile incorrectly to public. e.g. vpn connections etc.I can create a script to determine when its domain connected and...
View ArticleUsing MS Teams Add-TeamUser + loop through a csv file but not all members...
Hi there,We recently have run as Add-TeamUser command in a loop to add students into groups on MS Teams, using a CSV file for UPN data. However, when we check on MS Teams GUI (Browser and App), only 23...
View ArticleProblem with sending encrypted messages, when using certreq to generate CSR...
After changing the certificate generation method, users have a problem with sending encrypted messages. The previous method is to generate keys, CSR and sign certificate on the certificate provider...
View ArticleLogin Script Error 800A01B6
Hi,User works from home. User log in to Cisco Any Connect Start Before Logon before logging in to Windows 10.Below login script error occurs after the login.Highlighted the above line where the error...
View Articlepowershell use path that has over 150 difrent profiles
HelloI need to make a path that test if it exist but it has a lot difrent names afther profiles how can i make path that knows to oupen profile and then move...
View ArticleUsing modern Authentication on Exchange on Line and the Set-UserPhoto does...
The code has worked for 3 years. It just started not working with I am using modern authentication: Connect-ExchangeOnline -Credential $O365Credentials $Data = Import-Csv...
View ArticleWhy are some lines in my output being duplicated and others not?
SPF Item IP in EFD Count -------- --------------- 67.231.157.188 119 67.231.149.193 118 67.231.149.193 118 *Duplicate* 67.231.149.193...
View ArticleScript powershell for Bitlocker with encryption status
Hi,I'd like to script something in powershell, that would allow the computer to reboot after finishing the encryption with Bitlocker.The problem I got is, by forcing the reboot, it prevent the...
View Articlepowershell script to delete files works with 64bit dosent delete folders with...
Invoke-Command -ComputerName -Credential -ScriptBlock { $fileToCheck = "$env:LOCALAPPDATA\Microsoft\Windows Live Mail" $fileToCheck2 = "$env:APPDATA\Thunderbird\profiles.ini" $fileToCheck3 =...
View ArticleRemove many unknown sids from delegation tab via command line
I have a very important GPO that has recently had many objects in AD deleted that are on the delegation tab. We are running into a problem where we have so many security objects on this gpo it is...
View ArticleCharacter code page at the command prompt.
Hi everyone. How can I avoid this type of error with a character code page at the command prompt?Doria
View ArticleImport-CSV does not always provide the "Where" method
I'm trying to do something simple - sorry for the sloppiness:$arr1 = Import-Csv c:\arr1.csv$arr2 = Import-Csv c:\arr2.csvForEach($record in $arr1){ $test = $arr2.Where({$PSItem.User -eq...
View ArticlePowershell with CMD/c to run external command with Parameters
Greeting,I have an old command line application call Commandline.exe. it run with a parameter to check then show the result. but it need extra "Enter" to confirmlike: commandline.exe -s 45678901....
View ArticleAuto printing from cmd and clearing folder then
Hello,, dear all,I need a script etc, which will print all files within a folder (.jpg, .pdf., docx etc) and after successful printing, it make empty the folder then..Thanks.Abu Umer
View ArticleBatch File to Identify, Create Folder, and Move file
Greetings,I've spent the last day trying to find a way to create a batch file that would do the following;I have a folder that one of our pieces of software dumps .dat files into. I'm trying to make a...
View ArticleMatching Appname and version in registry
I am trying to search for app displayname and version and if matches write the output but not sure why it is not working as expected. Can someone pls guide me. DisplayName and version will be passed...
View Article