An updated version to use a loop, reducing the time to clean thousands of container, the request to get the set of Containers is slow when the number is too high, a loop with small value is more efficient and w
# Define the file paths and file names$templatePath="$env:APPDATA\Microsoft\usertemplates"$templateFiles= @("WordTemplate-2.dotm","WordTemplate-2.dotx")# Loop through each file and attempt to delete itforeach($filein$templateFiles){$fullPath=Join-Path-Path$templat...
In case you want to execute a PowerShell script, you have to use -argument and specify the script. In that case, the command will look like this- New-ScheduledTaskAction -Execute 'powershell.exe' -argument script-path Next, you have to set the time when you want to execute the task....
thanks for those links but I'm not talking about the normal intune service and its logging files. Its about a self-created powershell script that uses the commandstart-transcriptfor logging into the folderC:\ProgramData\Microsoft\IntuneManagementExtension\Logs. Our Code looks like Copy $transscri...
PingBack from http://microsoft-sharepoint.simplynetdev.com/powershell-script-to-delete-all-items-in-a-list/ Anonymous August 15, 2011 #This might Help Delete an item from the list by using a CAML query Within a specifi range [string] $web = "http://abc.abc.com/test"; #Considering...
Powershell script to delete the Application Gateway Certificate Code Sample 11/10/2022 2 contributors Browse code DISCLAIMER The sample codes are not supported under any Microsoft standard support program or service. The sample codes are provided AS IS without warranty of...
Start a PowerShell ISE window, then copy and paste the code into the window. Change the first three variables, $mach, $sql_instance and $DBname to match your environment Run the script # This script is to truncate all tables in a database ...
Delete a ScriptExecution public System.Threading.Tasks.Task ScriptExecutionsDelete(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptExecutionName, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task> onOk, Func<System.Net.Http.HttpResponseMessage...
How to create a partition with diskpart A disk partition sections off a portion of a physical hard drive. Partitioning a hard drive can be done for several reasons, such as organizing data in a more logical fashion or installing a different OS on each partition. ...
PowerShell – HostName to IP along with Ping in Excel Encrypt Password and use it in Powershell Script Bulk Password Reset – Active Directory Microsoft Teams Report for Office 365 Tenant Certificate expiry Alert Update Active Directory User attributes from CSV Export AD group members – nested /...