PowerShell ISE vs PowerShell behaviors
Hello Community!I have an odd (for me) behavior in a PowerShell script I've been working on to create new user accounts. We have created a CSV sheet that captures all the pertinent user data we...
View ArticlePutting A .csv File Into Two Different Arrays And Than Generating A Result
Hey everyone! I'm currently working on a project in Powershell for work where I have a .csv file that I need to import into Powershell, and than compare two rows of columns in the .csv file and if the...
View ArticlePowerShell 7 Preview 6 has shipped - Why Does This Matter?
So in a great article here, superstarTimb0slice pointed out the latest preview release of the upcoming PowerShell 7 open source product. But why does this matter? Why should YOU spend time reading...
View ArticleReading different data sets from single SCV file..
Hi,In the screen shot, there are 2 sets of data, 1 for Windows and 1 for VMware.What I want to do is to run a script that will only read the Windows Start to Windows End part of the data, and a second...
View ArticleConnect to Graph API Powershell
Came across these Graph API PowerShell examples for controlling Intune and wanted to share:https://github.com/microsoftgraph/powershell-intune-samples/blob/master/Applications/Application_And...The one...
View ArticleUsing a form button to call another form?
I'm using a function to create buttons, the process looks like...
View ArticlePowerShell: File vs. Console Output
I need your help fam. I am building a PowerShell script pulling some SHA1 hashes from an API into a variable.Powershell$hashes=Invoke-WebRequest-Uri"https://api.org.com"|select-ExpandPropertycontentThe...
View ArticleHow to know who are login/using to powershell command Office365
Hi Guys,Previously I received report from customer about they need to know who are used Office365 by powershell and how to know someone login with admin credential in powershell.I search on Mcrosoft...
View ArticleAuto CompressArchive by date?
Hello guys. I'm a newbie... , so maybe somebody can help me with one 'simple' script.So.. I have a folder eg: C:\logs\xxx , in this folder 'xxx' i have many subfolders , eg: x1, x2, x3, etc .. , in...
View ArticleAutomating Logins from Windows Login Screen?
Hi,I have been searching and cannot find a way to do this so I am guessing it is considered a vulnerability and not possible...Background:So when we have exams running we (The IT Team) have to manually...
View ArticleGet list of mapped drives
I'm trying to get a list of mapped drives on some computers, as I suspect a couple of users have drives mapped that are not part of a group policy.This works great, but only on my computer, 50% of the...
View Articleplease help to get window update from powershell, I get no reply from powershell
Hi There,I have tried following cammand to window update history. but no reply. I installed this month security patches but not able to get form powershell. please help me,how i can get it from...
View ArticleRead-Host not working in remote PS Session
I have a Powershell script which contains a Read-Host cmdlet, something simple like:Powershell$name=Read-Host-Prompt"What is your name?"I typically execute such Powershell scripts from a fileshare...
View ArticlePowershell - Regex log files
Maybe I'm going about this wrong. I have a log file that contains Date, Time, Name. I can use a regex for each to find the data in a line of text:Powershell$regdt='\b\d{1,2}\/\d{1,2}\/\d{1,4}\...
View ArticleScript help
Hello all, I need to install over 40 languages which I did by using lpksetup to install the .cab files. Now I have to install the local experience packs for the same amount. Of course, these are in...
View ArticlePowershell - Create custom hash table
Hi All,I'm trying to work out on how this could be done, but unfortunately not able to figure this outBasically I'm trying to create a hash table based on some custom...
View ArticleHow can I add Sticky Notes fpr all users over powershell commands
Hello everyone,I tried to Add Sticky Notes over Add-AppxPackage on my own User and that works perfect.My question now is what can I do to Add/reinstall Sticky Notes over Powershell for all user and not...
View ArticleCreate Variable from Output in Powershell
Hello everyone,can someone maybe tell me how I create a variable from an Output in Powershell? Example:Output in Powershell is:Name : Microsoft.MicrosoftStickyNotesPublisher...
View ArticleIssues with -join.
Greetings!I'm running into an issue where I'm not understanding the inner-working of -join.In the below section, -join works if the answer to IF is true.If the answer is false, PowerShell is...
View ArticleScript to uninstall .exe not working
Howdy all, I am wondering if anyone knows why this isn't working/has time to assist :)I have a batch of computers that I am trying to uninstall Softros LAN Messenger from.I have found this script...
View Article