Create two new worksheets, add arrays to each
I have two arrays, created using information in AD. I need to add two new worksheets (one named Preapproved and one named Denied). After creating those tabs, i need to somehow export the arrays to...
View ArticlePowerShell Team AMA on Tuesday, 8/23 @ 2p EST
Hey everyone, As you all know PowerShell had a pretty big announcement last week: we open sourced PowerShell and made it available on Mac and Linux! Now that you’ve all had a chance to play with it,...
View ArticleUpdate HTML Table with PowerShell
I’ve got a HTML table that I’m creating using ConvertTo-HTML cmdlet. Now, in the table, if a particular record has a value X, I want the entire color of the row to be Red. So far, I am able to update...
View ArticleNew-ADUser vs New-Mailbox
Hey As far as I know you can create a new User in the AD with both cmdlets (New-ADUser and New-Mailbox) but with New-Mailbox you automatically create a Mailbox for that User where as you have to...
View ArticlePermissions on Multiple Folder with different names
Hi, I am new to powershell and have been assigned to apply permissions for one particular group (in this case FFFL PAs) to have modify access on a folder called Client General Data. The issue I am...
View ArticleShortcut Move to Folder
I have a bunch of shortcuts on multiple machines that need to be organized. I am trying to create shortcuts for the array names and move the corresponding shortcut into that file. The corresponding...
View ArticleTotal Newbie Questions…Is powershell the tool I am looking for?
I am trying to write a script that will run some basic tests on my servers and network. For example, are all my core network devices pingable? Are my internal websites responding to HTTP or HTTPS...
View ArticlePowershell on Ubuntu on Windows
submitted by /u/runnystool [link] [comments] The post Powershell on Ubuntu on Windows appeared first on How to Code .NET.
View ArticleBeginner needing Set AD User assistance
I’m very new to PS and scripting and was giving a relatively simple task. One of our offices has recently moved and the all the users in that location need the phone number field in Active Directory...
View ArticleReplacing variable text in powershell with fixed text.
Hello. Im already working at a call center, and part of my duties are downloading and organizing files from a web application. Usually, the filenames look like these: recording-1524789-34758964524.wav...
View ArticleVerbose output question
I have a module I’ve been working on that contains a few custom functions that all work together. I’ve put in Verbose logging throughout these functions to aid in troubleshooting, but I’m running into...
View ArticleUsing pester to make sure your comment based help is not indented
submitted by /u/lazywinadm [link] [comments] The post Using pester to make sure your comment based help is not indented appeared first on How to Code .NET.
View ArticleSelecting variables based on output?
Hopefully I’m wording the title at least “semi-correctly”. I am trying to make this NetMsg function a little more versatile, and it is something that I will keep up to date manually in the code...
View Article2008 Server create a CNAME record using DNSCMD in Powershell
DNSCMD $DNSSVR /recordadd $DomainName '@' CNAME *|$DomainName Is the command I would run from the command line. Obviously because of the pipe (|) in the CNAME data, PowerShell has a tizzy. I’ve tried...
View ArticleMy PowerShell 2016 Goal Review
submitted by /u/michaelshepard [link] [comments] The post My PowerShell 2016 Goal Review appeared first on How to Code .NET.
View ArticleGet-Mailbox that don’t include security group.
Hello, Looking for some help on this. I’m attempting to list all mailboxes in Exchange that don’t have delegated access with the security group name ending in Mailbox Access. This is what I’ve come up...
View ArticleMy Script Output file is Empty
Hi Folks, I am trying to get a list of all files on my server which are 0 bytes in size and direct the output to a text file. I have tried variations but the file is always empty. Could someone please...
View ArticleFind multiple cells containing same string in different excel files
Hey, I am kinda new in the powershell game and got a question regarding comparing cells between two excel files and extracting those that contain a certain string. So it is like this, we have one file...
View ArticleMicrosoft Office 365 OneDrive uninstall
Hi guys, I have recently started using powershell to try and automate some of the day to day tasks we face at work. We use an MDT server to deploy laptop builds for new starters and one of the tasks...
View ArticleVersionAnalyzerRules for PSScriptAnalyzer
I made some custom PSScriptAnalyzer rules I thought I would share as it might be helpful to some other people out there. The rules help you identify which commands in a module/script can run on...
View Article