Previous script is now broken?
So I have a exchange powershell script that I posted on here a few months ago that does exactly what I needed it to do. Now I dusted it off and it doesn’t work anymore even though I didn’t touch it....
View Article[Discussion] Powershell Classes
Is anyone currently developing powershell classes rather than cmdlets/functions? What benefits have you found? submitted by /u/KittyCatDaddy [link] [comments] The post [Discussion] Powershell Classes...
View Article#$%@#$% Curly Brackets
Trying to do an Audit of Monitors attached to PC’s on our network. Using the below script. The one issue I am trying to resolve that’s doing my head in is removing the curly braces around the monitor...
View ArticleHow do I expand a System.__ComObject subproperty?
Probably there are a lot of interesting properties hidden inside the comobject properties, but I can’t expand them. What is the way to go? $UpdateSession = New-Object -ComObject...
View ArticleWhat happened to Poshcode.org? “Server not found” at the moment and I want to...
Can someone please tell me what happened to Poshcode? I keep getting “Server not found”, and I wanted to download the Powershell Lexer plugin (Version 1.0) for Notepad++. Can someone please tell me...
View ArticleHow to read \ from user input
A colleague and I have been working on a script for our team in work to search a csv and display the results in a table. We are both new to POSH but have successfully (so far) Googled our way through....
View ArticleDynamic Parameters for your Powershell Cmdlets
submitted by /u/W4tschi [link] [comments] The post Dynamic Parameters for your Powershell Cmdlets appeared first on How to Code .NET.
View ArticleCould anyone help explain this (it’s probably really simple…)?
I was trying to strip whitespace from the end of each line of output when running this command: Get-ADPrincipalGroupMembership -identity username | Select-Object -name In the end after much messing...
View ArticleHow can I make this window be a child window using Powershell? (WPF forms)
Basic framework for a WPF form in Powershell: https://pastebin.com/zzRbMQ4P You’ll see there’s a 2nd window defined in xaml that isn’t used anywhere. I just don’t know where to go from here. I’m not...
View ArticleOk, so this bugs me. Why do I need to load an [xml] file twice to have it...
To explain. I have an .xml file that I need to pull values from and later update. If I “get-content” into a variable just once, all I get back is the literal contents into that variable. I have to...
View ArticleCasting Date as Specific format
Hello, I’m trying to use commandlet Remove-CalendarEvents in Office 356. It’s property “QueryStartDate” is expecting a date in of type “Microsoft.Exchange.ExchangeSystem.ExDateTime”. The instructions...
View ArticleUse regex to get part of line
Im converting a linux set of commands to powershell to get an XML RSS feed of a podcast and regex out the download URLS. Im trying to use the following to get all the .mp3 URLs from...
View ArticleScript to clean C: drive, but quite specifically.
Hi all, Well aware of ways to get PS to run various disk cleaning functions, but I wondered if there was a way of getting it to do some more specific functions? Clear all contents of the cache file in...
View ArticleManufacturer of Power Products
submitted by /u/Enertech [link] [comments] The post Manufacturer of Power Products appeared first on How to Code .NET.
View ArticleHow to use Get-ADTrust?
I’m experimenting with Get-ADTrust on a Windows 2012 member server with PS 3.0 installed, and finding that no matter what syntax I use I get the following error: get-adtrust : One or more properties...
View ArticleNew Module: Load-Assemblies – Prepare values for the Add-Type cmdlet’s...
I’ve been using C# much more often recently for two main reasons: 1) I need to squeeze every bit of speed out of my code (big data sets); and 2) I need to use C# to fill-in some feature gaps in...
View ArticleIssues with remote and custom port
Hey guys So im trying to get a list of properties from Azure VMs WinRM is enabled, but the thing is I need to connect using a custom port because the default WinRM Port is blocked at work. I followed...
View ArticlePowershell script that returns multiple reports but when I export it only the...
Hey guys. I just recently took over a web application at my work and I am not familiar with powershell at all. There’s an existing script that returns a list of users that are either active or not...
View ArticleHelp with foreach loop adding a number
$Schoollist = Import-Csv -Path “yqs-fileserverimportsandexportsschoollist.csv” foreach ($item in $schoollist) { $ErrorActionPreference = “silentlycontinue” Schools $SchoolNumber =...
View Articlepowershell console shows rectangles
i’m not entirely sure what the problem is, but i think i can describe it and hopefully get some guidance. i’m using invoke-restmethod and playing with an api. the api returns website links, titles...
View Article