Powershell

18K

Solutions

8K

Contributors

Windows PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language built on the .NET Framework. PowerShell provides full access to the Component Object Model (COM) and Windows Management Instrumentation (WMI), enabling administrators to perform administrative tasks on both local and remote Windows systems as well as WS-Management and Common Information Model (CIM) enabling management of remote Linux systems and network devices.

Share tech news, updates, or what's on your mind.

Sign up to Post

0
Webinar: What were the top threats in Q2 2018?
LVL 1
Webinar: What were the top threats in Q2 2018?

Every quarter, the WatchGuard Threat Lab releases an Internet Security Report that describes and analyzes the top threat trends impacting companies around the world. Are you ready to learn more about the top threats of Q2 2018? Register for our Sept. 26th webinar to learn more!

Hi Guys really need your help before I pull my hair out!

I am using Powershell on a Mac and wish to search our Backup drive for images listed in a CSV file (one per line) the ones that are found need to be copied to a local folder. Also would like the script to mark the existing CSV as items found! Either that or create a separate CSV that lists the files that have been found! I have tried various scripts and customisations there off but obviously seem to be doing something wrong!

You help is much appreciated!
Andi
0
0
o365 deleted items folder has 1 million items.   What is the correct powershell command to remove all?
0
LVL 19

Expert Comment

by:Kyle Santos
Hi FOX,

You should go here and ask your question.  You'll get more replies and alert more experts by using the Q&A system.  Here you go https://www.experts-exchange.com/askQuestion.jsp
1
0
how check ip address in under subnets or not
0
LVL 26

Expert Comment

by:Brian B
You have entered this as a post, but it looks like it is a question. To get the best response from the Experts, you should probably re-submit this as a question using the "ask a question" button at the top of the screen, or this link: https://www.experts-exchange.com/askQuestion.jsp

Please see here for further details: http://support.experts-exchange.com/customer/portal/articles/756544-how-to-succeed-at-ee-as-an-asker
0
I've written a very simple PowerShell Script to connect to the following Microsoft Online Services from one Powershell Window:

Office365 Admin Center
Exchange Online
Sharepoint Online
Skype for Business
Security and Compliance Center

You can find the Script here:
https://davidatkin.com/blog/powershell-script-connect-microsoft-online-services-office365/

I know there are alot of these scripts out there but thought I would Share it anyway.
1
I've created a list of useful PowerShell Commands to assist in passing the Microsoft 70-346: Managing Office 365 Identities and Requirements Exam

https://davidatkin.com/blog/powershell-commands-microsoft-70-346/

Let me know if you find any mistakes or feel like a particular command is missing :-).  Thanks all.
1
Is there a Powershell command that I can run that will tell me if I am a delegate to any user in my organization? I want to run it against my own mailbox.
0
LVL 9

Expert Comment

by:Sean Plemons Kelly, CISSP
Consider reposting this as a question to garner more expert attention.
0
Exploring ASP.NET Core: Fundamentals
LVL 12
Exploring ASP.NET Core: Fundamentals

Learn to build web apps and services, IoT apps, and mobile backends by covering the fundamentals of ASP.NET Core and  exploring the core foundations for app libraries.

I am sharing with you some quick commands on using Office 365 Power Shell to perform Office 365 admin center tasks from the command line to your Office 365 organization:

How you can Connect to Office 365:

Import Office 365 Module  : Import-Module MSOnline
Connect to your Directory  : Connect-MsolService
Users Commands:

List all users:                        get-msoluser -all
List all users with count:        get-msoluser -all | measure

Change UPN on all unlicensed users:      Get-MsolUser -all | Where { -Not $_.UserPrincipalName.ToLower().StartsWith(“admin@”) } | ForEach { Set-MsolUserPrincipalName -ObjectId $_.ObjectId -NewUserPrincipalName ($_.UserPrincipalName.Split(“@”)[0] + “@acig.com.sa”) }
Remove all unlicensed users:       Get-MsolUser -all | Where-Object {$_.isLicensed -ne "true"} | Remove-MsolUser -Force


Office 365 Licensing Information:

You can use a Power Shell script to check if users have a license assigned directly or inherited from a group:

      1. Run the connect-msolservice cmdlet to authenticate and connect to your tenant as explained on the above commands.
      2. Get-MsolAccountSku can be used to discover all provisioned product licenses in the tenant.

Thanks and hope this might helps.

      
      

2
Powershell script for removing oracle completely from windows
0
LVL 26

Expert Comment

by:Brian B
To get the best answer from the Experts, you should probably ask this as a question: https://www.experts-exchange.com/askQuestion.jsp

Please provide as much detail as you can, including what you have already tried.
0
Hyper-V 2016 Trouble...  
HVMMC errorPSSession errorI have two 2012 r2 VM DCs running on a standalone Hyper-V 2016 host.  I set up remote management VIA PowerShell and Hyper-V Management console. I guess over WINRM with CredSSP.  Well everything was working fine (6-8 months or so now).  I all stopped a few weeks ago. I tried to pin it down to a security update but could not.  When I try to start a new PSSession or authenticate on the HVMMC I get an HTTP error code 403.  Everything I have found so far seems to be related to exchange and IIS,  neither of which are on these VM and the host is just Hyper-V it can't run anything else.  Also at the same time I could no longer check point my VM's which is required to work for my Unitrends recovery appliance.  It's like the entire management subsystem is broken.   I am still able to RDP into the host and manage the VMs with PowerShell but that's it...  I looked through application and error logs.  But I didn't see anything that appeared relevant to me...  
0

Author Comment

by:Chris Hobgood
Thanks!.... I'm new here!
1
LVL 7

Expert Comment

by:Brian Matis
Welcome aboard, Chris!
0
Now cancel the meeting for an office 365 mailbox using PowerShell CMD Remove-CalendarEvents

Please check out my post on the same here.

https://www.experts-exchange.com/articles/30640/Remove-CalendarEvents-Cancel-future-meetings-in-user-or-resource-mailboxes-in-Office-365.html

0
hello everyone, Happy to share my 2nd article published on Expert Exchange, there I am sharing a Powershell Tip on converting StringData into a Hash Table using "ConvertFrom-StringData" Powershell CMD, your Feedback, and Suggestions are welcome, please give me your endorsement to help me level up.

https://www.experts-exchange.com/articles/29939/Powershell-Tips-Convert-String-Data-into-a-hash-table-ConvertFrom-StringData.html
2

Expert Comment

by:Justin Carey
Have you created a course?
0
LVL 14

Author Comment

by:Sunil Chauhan
not yet Justin.
0
0

New freeware from CodeTwo to automate bulk upload of user photos to Office 365


Hi there,

We (CodeTwo) have released a new free tool for bulk Office 365 user photo management - CodeTwo User Photos for Office 365. This application is a twin program of our other well-known freeware for user photo management CodeTwo Active Directory Photos, but it operates in Office 365.

CodeTwo User Photos for Office 365 will handle everything from photo preparation, through auto matching, to straightforward bulk upload of users’ photos to Exchange Online mailboxes. No need to use PowerShell and the Set-UserPhoto cmdlet – the entire process is easily handled via an intuitive GUI.

Here you can watch how the program works:
https://www.youtube.com/watch?v=w6eLrwLVY3o&t=1s?sts=6789

You can also find more details on program’s official website or this blog post.

Enjoy!
1
4
LVL 53

Expert Comment

by:Jackie Man
You need to install software like sophos intercept x in computers inside your network to block it.
3
LVL 7

Author Comment

by:Brian Matis
Personally, I'm just avoiding opening any Word docs from anyone I don't know... And to some extent, even from people I do know... Most of my document usage these days is with Google Docs, so it's pretty rare that I need a Word doc!
1

Powershell

18K

Solutions

8K

Contributors

Windows PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language built on the .NET Framework. PowerShell provides full access to the Component Object Model (COM) and Windows Management Instrumentation (WMI), enabling administrators to perform administrative tasks on both local and remote Windows systems as well as WS-Management and Common Information Model (CIM) enabling management of remote Linux systems and network devices.