{A Lil Help}Storing user input in variable
I am trying to introduce powershell to my coworkers. I’ve modified several scripts, nothing major. I was wondering if there was a way to ask for input for the domain name and store in a variable and...
View Articledbatools – an open source project, now with over 100 PowerShell commands for...
submitted by /u/thebeersgoodnbelgium [link] [comments] The post dbatools – an open source project, now with over 100 PowerShell commands for DBAs. Here’s our most recent release! • /r/SQLServer...
View ArticleNew-VNCConnection Function
The free Windows VNC Client from RealVNC doesn’t allow for encrypted VNC sessions, so I wrote a PowerShell function that can send the VNC session through an SSH tunnel using Putty. (It can also do...
View ArticleSelect-object returns true or false, not actual object
Get-MailboxDatabase * | Select-Object {$_.AdminDisplayName -like "*FServer*"} False False False False False False True True False submitted by /u/wdz [link] [comments] The post Select-object returns...
View ArticleList Lowest from list
Get-MailboxDatabase * | Where-Object {$_.AdminDisplayName -like "*Alpha*" -or $_.AdminDisplayName -like "*Beta*" -or $_.AdminDisplayName -like "*Charlie*" -or $_.AdminDisplayName -like "*Delta*"} |...
View ArticleFirefox Profile Script Error
Could anyone help me deduce why the following script is giving me and error? Pastebin Link It’s returning the following error: New-Object : Exception calling ".ctor" with "1" argument(s): "The given...
View ArticleIs a public facing DSC server secure?
I have clients are regional branch offices that need to connect back to a DSC pull server but internet is the only option available. Is it safe to use a internet facing DSC pull server? submitted by...
View ArticleWhat is the fastest, most compact way to compare the values between two objects?
I have two objects, which contain names and values. The names do not and will not ever match between the two objects, but the values sometimes do. I need a method that is compact, doesn’t hang and...
View ArticleGet-WUlist takes too long / not working / I’m too stupid to understand
Hi guys, I’m trying to automate the windows security patches to our servers and am trying out PSWindowsUpdate for the first time. What we used to do is upload our cab file over to the WSUS servers and...
View ArticleIf PowerShell Were School, I would Ditch Classes Regularly
submitted by /u/markekraus [link] [comments] The post If PowerShell Were School, I would Ditch Classes Regularly appeared first on How to Code .NET.
View ArticleScript to check if patching was successful
I’ve recently started working at a new job and one of my duties is to verify patching was successful. Currently they do this manually by logging into each server and verifying (They do not trust SCCM...
View ArticleLimit information returned in computer object description?
Hey all – very new to powershell and having some issues finding the right way to achieve my goal. I want to query AD computer objects and return the hostname along with the description. However, I...
View ArticleGet user firstname lastname and email from security group?
I’m trying to get users from AD that are in a particular security group, but I need their firstname, lastname, and email address. I have this: Get-ADGroupMember -identity “TestGroup” | select name |...
View ArticleUse Windows Powershell to execute python exe file
can i run script exe ” py2exe compiled version” in powershell ? submitted by /u/Aryma_Saga [link] [comments] The post Use Windows Powershell to execute python exe file appeared first on How to Code...
View ArticleHelp trying to figure out how to do something.
Going to shorten the data set but everything that needs to be there to explain/fix the problem will be included. Basically, I am trying to parse a set of data into an object and keep all of the data...
View Articleo365 error…feels like maybe a timeout error? 1st time running it.
This works for around 130 employees and then throws up an error: “Processing data from remote server failed with the following error message: The SSL connection cannot be established. Verify that the...
View ArticleIntroduction to managing HP Servers through the iLO RESTFul API using Powershell
submitted by /u/techthoughts [link] [comments] The post Introduction to managing HP Servers through the iLO RESTFul API using Powershell appeared first on How to Code .NET.
View ArticleAny powershellers know if there’s a “top -H -p PID” alternative in Powershell?
The command above is extremely useful in Linux to get the top threads consuming CPU for a specific process. I know PS has some options such as ps or Get-Process to get process information, but does...
View ArticleHow do I run an outside process with zero lag?
I’m trying to display the git branch name in the Powershell prompt without any prompt lag everytime I hit enter. I’m looking for a way to run $gitBranch = $(git symbolic-ref HEAD) asynchronously. I...
View ArticleAre you using PSWA?
Curious to know if folks have a PowerShell Web Access gateway setup in their environment and the mileage they are getting out of it. My first impression was, ‘this is neat’ but, I imagine, if you...
View Article