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