PoshRSJob and PowerCLI session
Hopefully the community can help me solve a task I have been banging my head over. How to get a VIServer Connection to persist into the runspace created with PoshRSJob, but can’t figure out how to...
View ArticleView net sessions on Remote Systems
submitted by /u/boeprox [link] [comments] The post View net sessions on Remote Systems appeared first on How to Code .NET.
View ArticleLoading all folder contents into POSH $Profile
I was reading through a post a few days back and saw that someone was talking about a central location to keep all modules. There was a specific line of code that was reaching out to SERVERFolderX and...
View ArticleEpisode 314 – PowerScripting Podcast – Matt Davis from Red Hat on Ansible
submitted by /u/alinroc [link] [comments] The post Episode 314 – PowerScripting Podcast – Matt Davis from Red Hat on Ansible appeared first on How to Code .NET.
View ArticleCustom parameter help
Hi All, Another chapter completed from Learn Powershell in a month of lunches (whoohoo!). After doing the lab I said well this script is pretty handy, but I would like to make a few changes to suite...
View ArticleWhat is wrong with my script?
Printscreen of my code: http://prntscr.com/c16uyb I dont get why this isn’t working.. This is a part of a bigger script I have. But am I doing the if’s wrong? submitted by /u/tr4p [link] [comments]...
View ArticlePS vs BASH – Linux Cmd’s now in Windows, what does this mean?
Source: http://www.theverge.com/2016/3/30/11331014/microsoft-windows-linux-ubuntu-bash With BASH now coming to windows, what will it mean for powershell? I genuinely want to know what the broader...
View ArticleBeginner needs help with Powershell script (combined with Batch)
So im new to reddit and powershell, and i need help: this is the Powershell script that i use in this batch file. What i want the powershell script to do, is to rename some files i created in the...
View ArticleCommand to activate MS Project and Visio 2010 through PS?
So I’ve got a script that I run to install all the software I need on new servers which works great. The problem is after installing Visio and Project (which have to be installed separately from the...
View ArticleScript help: Parsing a log
A utility writes output to a log file constantly. I’m trying to write script that constantly checks the file and parses it for a certain term. If the term is found It emails an alert to a specified...
View ArticleClean-MailboxDatabase not working
I get an error when running a Clean-MailboxDatabase command. I’ve run it dozens of times in the past, but now it won’t work. I’ve tried running it directly on the Exchange Management shell and through...
View ArticleNew-PSDrive vs Copy-Item
Hey everyone, we have a minor issue with a Octopus Deploy process step that has the objective of copying a small amount of data over the network to a shared directory.. Every so often, this happens:...
View ArticleCreate AD user and home folder script
I am working on a script to create an active directory user and home folder. I am looking for some tips and perhaps some help changing the input so that I can put in a username in the format of...
View ArticleCommunicating objects between run spaces?
I’m used to writing multi-threaded apps in C# and using thread safe collections to pipe objects between threads as needed. What’s the best way to do that in powershell and runspaces? Can someone...
View ArticleMulti-Valued attribute in AD returns hex…am i doing something wrong?
Running: Get-ADGroup Groupname -properties extensiondata | select extensiondata And it returns a bunch of hex. One of the multivalued attributes are IA33=Tetris. Is there a way i can just list all the...
View ArticleHow to store SmartCard credential in variable?
i want to use copy-item but i keep getting bad username password error. after doing research i have found that you need -credentials but i only have SA on a Smartcard there is no username/password...
View ArticleScript to pull slow logins
Pardon if it isn’t best practices, but I needed something quick. It looks for 6006 events “The winlogon notification subscriber <GPClient> took 253 second(s) to handle the notification event...
View ArticleRegular Expression question
Not necessarily a powershell specific question, so I apologize if I offend anyone for posting it here. I am working on a bot to kick off some automation and it listens and consumes text through...
View ArticleDISM cmdlets using the -Online parameter fail in a Startup Script
This one has me stumped… Every time I try and run a DISM cmdlet with the -Online parameter in a startup script, I get a DismOpenSession failed. Error code = 0x80040154 error. Running the same command...
View ArticleConnect to Exchange Online in a Job
I was able to pull off a Start-Job that connected to an on prem Exchange server and performed a query for me, but have struck out on doing the same thing with Exchange Online using a credential file....
View Article