Clear SharePoint Config Cache with PowerShell
submitted by /u/studentsace [link] [comments] The post Clear SharePoint Config Cache with PowerShell appeared first on How to Code .NET.
View Articleusing the LIKE switch
Where I work, we use numbers to log in. My number for example would be 123456789. However my user directory would be named 123456789E. The Letter is random for everyone. What I want to do is...
View ArticleGenerate vCards using Active Directory
Since my company is hell-bent on using vCards, yet doesn’t take the time to keep them updated, I created this script that runs weekly and dumps all the vCards to a shared drive. Data it pulls from AD:...
View ArticleHow to clear the configuration cache on All servers in SharePoint Farm using...
submitted by /u/learnersclub [link] [comments] The post How to clear the configuration cache on All servers in SharePoint Farm using Powershell Script appeared first on How to Code .NET.
View ArticleCheck before Proceeding
Could I get some help with part of my script that creates the SAM and checks for existing SAMs? We will normally increment a SAM by 1 if the username already exists (JDoe to JDoe1), or by 2 if the...
View ArticlePowershell add user group perms to folders
Got a task to check permissions on a folder, that is static, across all the servers in my environment, I need to check the folder if Local Users group is added to the folder, and if not add is as...
View ArticleThinking of starting a Powershell blog, any tips?
Recently I’ve been writing some pretty funky scripts to help me out at work. Considering sharing them with others but not sure what’s the best way to go about it. I work as a cloud engineer so I get...
View ArticlePowerShell script to scan a network or host for the MS17-010 vulnerability...
submitted by /u/nadroj_r [link] [comments] The post PowerShell script to scan a network or host for the MS17-010 vulnerability using NMap NSE. appeared first on How to Code .NET.
View ArticleEpisode 320 – PowerScripting Podcast – MVP Tim Warner
submitted by /u/alinroc [link] [comments] The post Episode 320 – PowerScripting Podcast – MVP Tim Warner appeared first on How to Code .NET.
View Articlepowershell recursive function array values disappears
Below is my code function RecursiveWebs($web){ $Properties = @{ Title = $w.Title URL = $w.Url } $webinfo += New-Object psobject -Property $properties foreach($w in $web.Webs) { if ($w.Webs.Count -gt...
View ArticleThe file or assembly “System.Web.Extensions” can not be found.
Hello, I’m about to implement the Anti-Ransomware PS-script on all of our file servers (https://fsrm.experiant.ca/). On two 2008 R2 machines I receive the following error. Add-Type : The file or...
View ArticlePowershell: inheritance and propagation on folders
Having some issues on understanding correctly inheritance and propagation. Maybe you guys can lend a hand… I have C:SOMETHINGSOMEFOLDER. I dont care about that folder. At all. From what I see, it has...
View ArticleDownload msu and installers from Microsoft websites
Good day, I’m a newbie with regards to PowerShell, so apologies if the question has already been answered in the past. I’m in the need to provision a Windows 2012r2 server vagrant box on a Linux...
View ArticleInfoBlox powershell module
submitted by /u/omrsafetyo [link] [comments] The post InfoBlox powershell module appeared first on How to Code .NET.
View ArticleStart-Process glitch, or as intended?
Should I report this, or is this expected behavior? PS C:Userstestadmin> Start-Process powershell -ArgumentList "-noprofile -NoExit -Command `"Write-Host 'Hi'`"" -PassThru -NoNewWindow Handles...
View ArticleGoogle API – JSON Help
I am using a Google API and getting JSON responses fine. I however cannot get the JSON to convert to anything useful. Convertfrom-json seems to produce system objects and useless garbage. I understand...
View ArticleBasic and Advanced Filtering of PowerShell Objects using Where-Object
A little something for those of us that are still getting started with PowerShell. https://youtu.be/ccSx-cDIKNc submitted by /u/signalwarrant [link] [comments] The post Basic and Advanced Filtering of...
View ArticleButton Greyed Out and Not Enabled
I am using powershell to open internet explorer, and click a button which opens a web form. Then, it selects a single option from a dropdown list, and is supposed to click a submit button which is...
View ArticleHow do I get the links in href from the Links property of Invoke-WebRequest...
$a = Invoke-WebRequest -Uri "https://myanimelist.net/anime/16436/Tenshi_no_Drop" $arr = $a.Links | select href $arr[1] $arr is to be a string array. This should ideally, display the second url on the...
View ArticlePivot Table: Issue with Range selection
Hello All, I have an excel sheet with range A:O, but I am unable to select the complete range when I want include in the Pivot, but able to get till “column L”. Error Type mismatch. (Exception from...
View Article