This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cat /root/service.sh | |
################################################################ | |
#!/bin/bash | |
###edit the following | |
service=searchd | |
[email protected] | |
###stop editing | |
host=`hostname -f` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Connect-MsolService | |
############################################################## | |
Get LastPasswordChangeTimestamp for all the users: | |
Get-MsolUser -All| select UserPrincipalName, LastPasswordChangeTimestamp|Export-Csv D:\user.csv | |
##################################################################### | |
Bulk reset Password and ForceChangePassword: | |
Import-Csv C:\users.csv | ForEach-Object { Set-MsolUserPassword -UserPrincipalName $_.UserPrincipalName -NewPassword $_.Newpassword -ForceChangePassword $true} | |
##################################################################### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# tc-bandwidth-limit Limits the bandwidth of the configured interface | |
# chkconfig: 345 95 05 | |
# | |
# description: Limits the bandwidth of the configured interface | |
### BEGIN INIT INFO | |
# Provides: tc-bandwidth-limit | |
# Default-Start: 3 4 5 |