PowerShell Command to export NSG rules in Azure.
Connect to Azure using the command below and authenticate with valid credentials. After establishing Azure connectivity, execute the command below to export the NSG rule.
Sheik's Site
Connect to Azure using the command below and authenticate with valid credentials. After establishing Azure connectivity, execute the command below to export the NSG rule.
In most cases, the db would get online immediately after executing the below query. If you ended up with the below error: Msg 4333, Level 16, State 1, Line 3 The database cannot be recovered because the log was not restored. Msg 3013, Level 16, State 1, Line 3 RESTORE DATABASE is terminating abnormally. Execute … Read more
When attempting to create an OS image using SCCM image capture, the process may fail due to errors related to Sysprep. A common error reported in the smsts.log file and other related logs includes: Additionally, the %WINDIR%\System32\Sysprep\Panther\setupact.log file might show errors such as: OR OR Resolution Steps Option 1: Install All Pending Windows Updates Option … Read more
1. Follow the Windows 11 install process until you get to the “choose a country” screen. 2. Hit Shift + F10. A command prompt appears. 3. Type OOBE\BYPASSNRO to disable the Internet connection requirement. 4. The PC will reboot and allow you to configure local account without the internet. 5. Enter a username you want to use for your local account and click … Read more
Sources: Set-AuthenticationPolicy (ExchangePowerShell) | Microsoft Learn Deprecation of Basic authentication in Exchange Online | Microsoft Learn
When authenticated SMTP is not an option you can create a new receive connector on the Exchange 2016 server that will allow anonymous SMTP relay from a specific list of IP addresses or IP ranges. In the Exchange Admin Center navigate to mail flow and then receive connectors. Select the server that you want to create the new … Read more
Task Scheduler Script to be pushed from SCCM or through GPO. Powershell to restart the client machine that has an uptime of more than 2 days. This script includes: Powershell to restart the client machine that has an uptime of more than 2 days. This script includes: Same for minutes with one notification.
To check the status of the NTP server, run the command: w32tm /query /status To reveal the current NTP pool being used to sync time with execute: w32tm /query /source You can also display a list of NTP time servers along with their configuration status as shown. w32tm /query /peers To display NTP server configuration … Read more
Preparing for Client Installations with Group Policy We are going to configure Group Policy settings for our domain workstations so they will be able to successfully install the SCCM client. From Server Manager select Tools > Group Policy Management. Right-click on the Workstations OU and right-click and choose Create a GPO in this domain, and … Read more
After executing the above commands, do an IIS reset.
SCCM Device collection Query based on the Device name. For devices whose names contain certain patterns or partial matches, you can use multiple LIKE conditions: SCCM Device collection Query for removing inactive devices based on the number of days.
Since the configuration service provider (CSP) or group policy (GPO) settings to configure access to the Microsoft Store app are available to Windows Enterprise and Education editions, we have come up with an alternate workaround through Applocker Store App Rules Save the below content as an XML file. Create a custom Administration template under the … Read more
For Specific user. For all the Users *We can use force if it is required. For Selective users using csv file. To verify the deletion. Please be aware of executing the PowerShell Scripts. Kindly use it at your own risk.
For Single User For bulk Users. CSV File Format Username PrimarySMTP SecondarySMTP NewUPNSuffix jdoe jdoe@prismtp.com jdoe@secsmtp.com newdomain.com asmith asmith@prismtp.com asmith@secsmtp.com newdomain.com
When an organization transitions to a new domain, updating the email addresses and aliases for all distribution lists can be a daunting task. This PowerShell script automates the process to replace the old domain with the new domain for all distribution lists in Exchange Online. Prerequisites Before running the script, ensure the following: PowerShell Script … Read more
Preliminary troubleshooting steps include. If the above troubleshooting doesn’t fix the issue then proceed with the below steps. Analyse the DISM log saved at the location “C:\Windows\Logs” and check for the below error or similar to the below error. CGetFeaturesCommandObject internal execution failed – DismGetFeaturesExInternal(hr:0x800f0805) If you found such an error in the DISM log, … Read more