whoami
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
New-Item -Path C:\\Temp -ItemType Directory
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-Service -Name WinRM | Format-List *
Get-EventLog -LogName Application -Newest 50
New-Item -Path C:\\Temp -ItemType Directory
hostname
Get-HotFix -Id KB5005565
Get-EventLog -LogName Application -Newest 50
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-Service | Where-Object {.Status -eq 'Running'}
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Set-Location C:\\Temp
Get-ADUser -Filter 'Enabled -eq True'
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Set-ExecutionPolicy RemoteSigned -Scope Process
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Disconnect-PSDrive Z
Get-Content C:\\Scripts\\deploy.ps1
Restart-Service -Name 'WinRM'
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-ADComputer -Filter *
Get-Content C:\\Scripts\\deploy.ps1
Get-ScheduledTask
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-ADPrincipalGroupMembership svc_backup
Get-NTFSAccess -Path C:\\SYSVOL
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-ADGroup -Filter *
Test-NetConnection google.com
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Test-Connection -ComputerName dc01.novatech.local
Get-NTFSAccess -Path C:\\SYSVOL
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Write-Host 'Operation terminée'
cls
Get-ADServiceAccount -Filter * -Properties *
Get-ADUser -Filter 'Enabled -eq True'
Get-ADUser -Filter 'Enabled -eq True'
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-ADPrincipalGroupMembership svc_backup
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Start-Sleep -Seconds 10
Get-ADUser -Filter 'Enabled -eq True'
Get-SmbShare
systeminfo
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
whoami
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Test-Connection -ComputerName dc01.novatech.local
Import-Module ActiveDirectory
Get-HotFix -Id KB5005565
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Remove-Item C:\\Temp\\old_log.log -Force
Get-ADServiceAccount -Filter * -Properties *
Get-EventLog -LogName Application -Newest 50
Get-SmbShare
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Remove-Item C:\\Temp\\old_log.log -Force
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-EventLog -LogName System -Newest 50
Start-Sleep -Seconds 10
Get-EventLog -LogName System -Newest 50
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-ADUser -Filter 'Enabled -eq True'
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-ChildItem -Recurse C:\\Scripts\\
cls
Get-ADUser -Filter 'Enabled -eq True'
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Remove-Item C:\\Temp\\old_log.log -Force
Test-Connection -ComputerName dc01.novatech.local
Get-WmiObject Win32_OperatingSystem
Get-Service | Where-Object {.Status -eq 'Running'}
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-HotFix -Id KB5005565
Get-Date
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-Service -Name WinRM | Format-List *
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-EventLog -LogName Application -Newest 50
Get-NetIPAddress
Get-Process | Where-Object {.CPU -gt 100}
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-ADOrganizationalUnit -Filter *
Get-ADUser svc_backup -Properties lastLogonTimestamp
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-ChildItem -Recurse C:\\Scripts\\
Get-ADUser -Filter 'Enabled -eq True'
Get-ChildItem -Recurse C:\\Scripts\\
Get-Credential
Import-Module ActiveDirectory
Get-SmbSession
whoami
Get-ScheduledTask
Get-ScheduledTask
Get-Credential
Get-Date
ipconfig /all
Get-CimInstance -ClassName Win32_QuickFixEngineering
